package com.xiaodu.acer.phoneplay.di.module;

import android.app.Application;

import com.xiaodu.acer.phoneplay.data.AppManagerModel;
import com.xiaodu.acer.phoneplay.presenter.contract.AppManagerContract;

import dagger.Module;
import dagger.Provides;
import zlc.season.rxdownload2.RxDownload;

/**
 * 菜鸟窝http://www.cniao5.com 一个高端的互联网技能学习平台
 *
 * @author Ivan
 * @version V1.0
 * @Package com.cniao5.cniao5play.di
 * @Description: ${TODO}(用一句话描述该文件做什么)
 * @date
 */


@Module()
public class AppManagerModule {


    private AppManagerContract.View mView;

    public AppManagerModule(AppManagerContract.View view) {
        this.mView = view;
    }


    @Provides
    public AppManagerContract.View provideView() {
        return mView;
    }


    @Provides
    public AppManagerContract.Model provideModel(Application application, RxDownload rxDownload) {

        return new AppManagerModel(application, rxDownload);
    }


}
